#pragma once
#include "ToolTip.h"

namespace GUIToolkit
{
	class Window 
		: public HwndHost
	{
	private:
		UIElement* mouseover;
		bool ismoving;
		bool m_bMouseTracking;
		ToolTip* toolTip;

	protected:
		virtual LRESULT WndProc(UINT msg, WPARAM wParam, LPARAM lParam, bool& handled);

		virtual bool OnPaint(HDC hdc, const Rect &rect);
		virtual bool OnClose(bool &cancel) { return false; }
		virtual void OnDestroy() {  }
		
	public:
		Window( LPCTSTR text, LPCTSTR cls = NULL, int style = WS_OVERLAPPEDWINDOW, int exstyle = WS_EX_APPWINDOW, RectF* rect = NULL );

		virtual ~Window(void);
	};
}
